package top.lshaci.learning.springboot.jpaenhance.vo;

import io.gitee.lshaci.scmsaext.jpa.dsl.DslFrom;
import io.gitee.lshaci.scmsaext.jpa.dsl.DslResult;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import top.lshaci.learning.springboot.jpaenhance.entity.QRoleEntity;
import top.lshaci.learning.springboot.jpaenhance.entity.QUserEntity;
import top.lshaci.learning.springboot.jpaenhance.entity.UserEntity;

/**
 * UserVo
 *
 * @author liangxu
 */
@Data
@DslFrom(QUserEntity.class)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class UserVo extends UserEntity {

    @DslResult(fromClass = QRoleEntity.class, field = "name")
    private String roleName;
}
